Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: specify where to run npx react-native info for bug reports #2314

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

mikehardy
Copy link
Contributor

Summary:

the "info" command is not known to the react-native wrapper on npmjs.com so "info" only works if you run it from inside a directory where react-native is installed as a local package

This is what happens if you just run npx react-native info outside a project:

mike@isabela:~ % npx react-native info
npm WARN cli npm v10.2.4 does not support Node.js v18.15.0. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
error: unknown command 'info'
(Did you mean init?)

Test Plan:

Run it inside a working project with react-native installed, and it works

Checklist

  • Documentation is up to date to reflect these changes.
  • Follows commit message convention described in CONTRIBUTING.md

the "info" command is not known to the react-native wrapper on
npmjs.com so "info" only works if you run it from inside a directory where react-native is installed as a local package
@github-actions github-actions bot added the docs Documentation change label Feb 28, 2024
@mikehardy
Copy link
Contributor Author

Noticed this when attempting to log #2313

Copy link
Collaborator

@szymonrybczak szymonrybczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@szymonrybczak szymonrybczak merged commit c5d2e93 into main Mar 25, 2024
10 checks passed
@szymonrybczak szymonrybczak deleted the mikehardy-bug-template-fix branch March 25, 2024 09:15
thymikee pushed a commit that referenced this pull request Mar 27, 2024
…2314)

the "info" command is not known to the react-native wrapper on
npmjs.com so "info" only works if you run it from inside a directory where react-native is installed as a local package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants